import React from 'react'
// ===================================================================== Temp
import TableModal from '#cpt/temp/TableModal'
// ===================================================================== global declare
const { $fn } = window
// ===================================================================== component
class Index extends React.Component{
	state = {
		data:[],
		pag: {}
	}
	
	model = {}
	query = {}

	open = merge_report_id => {
		this.modal.open()
		// 搜索参数
		this.query = { merge_report_id }
		//
		this.fetch()
	}
	// paging
	fetch = () => $fn.fetch.call(this, 'merge-report/kindlists', { isIndex:true })
	
	// 表单
	cols = [
		{ title: '标本条码', 	dataIndex: 'spec_code', 			...$fn.table.spec_code },
		{ title: '自然项目', 	dataIndex: 'parent_kind_name', 		width:200 },
		{ title: '实验号', 		dataIndex: 'experiment_num', 		...$fn.table.exp_num },
		{ title: '项目名称', 	dataIndex: 'kind_name', 			width:200 },
		{ title: '姓名', 		dataIndex: 'patient_name', 			...$fn.table.name },
		{ title: '结果', 		dataIndex: 'result', 				...$fn.table.num },
		{ title: '接收时间', 	dataIndex: 'receive_time', 			...$fn.table.time  },
	]
	
	render(){
		return TableModal.call(this,{ title:'查看项目明细', width:'99%', height:'80%', noSubmit:true })
	}
}

export default Index